package cn.chenli.job.common.controller;

/**
 * @author chenli
 * @create 2017-08-14
 */
public class Action {

    private String url;
    private String method;
    private Class<? extends Controller> controller;
    private String viewPath;

    public Action(String url, String method,String viewPath, Class<? extends Controller> controller) {
        this.url = url;
        this.method = method;
        this.viewPath = viewPath;
        this.controller = controller;
    }

    public String getUrl() {
        return url;
    }

    public Action setUrl(String url) {
        this.url = url;
        return this;
    }

    public String getMethod() {
        return method;
    }

    public Action setMethod(String method) {
        this.method = method;
        return this;
    }

    public Class<? extends Controller> getController() {
        return controller;
    }

    public Action setController(Class<? extends Controller> controller) {
        this.controller = controller;
        return this;
    }

    public String getViewPath() {
        return viewPath;
    }

    public Action setViewPath(String viewPath) {
        this.viewPath = viewPath;
        return this;
    }
}